package kr.hkit.summary_java.erp.dto;

import java.text.DecimalFormat;


public class Employee {
	
	private int empNo;
	private String empName;
	private int title;
	private int manager;
	private int salary;
	private int deptNo;
	
	private String titleS;
	private String deptNoS;
	
	public Employee() {
	}
	
	public Employee(int empNo, String empName, String titleS, int manager,
			int salary, String deptNoS) { //
		super();
		this.empNo = empNo;
		this.empName = empName;
		this.titleS = titleS;
		this.manager = manager;
		this.salary = salary;
		this.deptNoS = deptNoS;
	}


	public Employee(int empNo, String empName, int title, int manager,
			int salary, int deptNo) {
		super();
		this.empNo = empNo;
		this.empName = empName;
		this.title = title;
		this.manager = manager;
		this.salary = salary;
		this.deptNo = deptNo;
	}

	
	public Employee(String empName) {
		super();
		this.empName = empName;
	}

	public Employee(int empNo) {
		super();
		this.empNo = empNo;
	}
	

	public int getEmpNo() {
		return empNo;
	}

	public void setEmpNo(int empNo) {
		this.empNo = empNo;
	}

	public String getEmpName() {
		return empName;
	}

	public void setEmpName(String empName) {
		this.empName = empName;
	}

	public int getTitle() {
		return title;
	}

	public void setTitle(int title) {
		this.title = title;
	}

	public int getManager() {
		return manager;
	}

	public void setManager(int manager) {
		this.manager = manager;
	}

	public int getSalary() {
		return salary;
	}

	public void setSalary(int salary) {
		this.salary = salary;
	}

	public int getDeptNo() {
		return deptNo;
	}

	public void setDeptNo(int deptNo) {
		this.deptNo = deptNo;
	}
	
	

	public String getTitleS() {
		return titleS;
	}



	public void setTitleS(String titleS) {
		this.titleS = titleS;
	}



	public String getDeptNoS() {
		return deptNoS;
	}



	public void setDeptNoS(String deptNoS) {
		this.deptNoS = deptNoS;
	}



	@Override
	public String toString() {
		return String
				.format("사원정보 [사원번호=%s, 사원명=%s, 직책=%s, 직속상관=%s, 급여=%s, 부서번호=%s]",
						empNo, empName, title, manager, salary, deptNo);
	}
	
	/*public String[] toArray(){
		DecimalFormat df = new DecimalFormat("#,###");
		return new String[]{String.valueOf(empNo), empName, String.valueOf(title),
				String.valueOf(manager),df.format(salary),String.valueOf(deptNo)};
	}*/
}
